import request from '@/utils/request'
// 获取门店
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 今日、本月数据
export function getTodayData(data) {
    return request({
        url: '/Situation_store_consumer_target/member_counts',
        method: 'post',
        data: data
    })
}
// 折线图数据
export function chartData(data) {
    return request({
        url: '/Situation_store_consumer_target/filtrate_member_counts',
        method: 'post',
        data: data
    })
}
// 近七日数据
export function sevenData(data) {
    return request({
        url: '/Situation_store_consumer_target/filtrate_member_seven',
        method: 'post',
        data: data
    })
}
// 机台消费数据
export function machineData(data) {
    return request({
        url: '/Situation_store_consumer_target/machine_expense_detail',
        method: 'post',
        data: data
    })
}
// 门禁消费数据
export function timesData(data) {
    return request({
        url: '/Situation_store_consumer_target/times_expense_detail',
        method: 'post',
        data: data
    })
}
// 门票数据明细
export function ticketsInfo(data,type) {
    let url = type == 1?'/Statistic_play_expense_times/tickets_info':'/Statistic_play_expense_times/accompany_info'
    return request({
        url: url,
        method: 'post',
        data: data
    })
}

